#-------------------------------------------------
#
# Project created by QtCreator 2018-08-15T10:50:27
#
#-------------------------------------------------
#DEFINES += BUILD_ARM
DEFINES += BUILD_X86_LINUX
#DEFINES += BUILD_X86_WINDOWS
DEFINES += D_USE_QT5FTP

QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = FtpManage
TEMPLATE = lib

TRANSLATIONS += FtpManageEnglish.ts

DEFINES += FTPMANAGE_LIBRARY
DEFINES += FTPPROGRESSDIALOG_LIBRARY

SOURCES += \
        ftpmanage.cpp \
    ftpprogressdialog.cpp

HEADERS += \
        ftpmanage.h \
    ftpmanage_global.h \
    ftpprogressdialog.h \
    ftpprogressdialog_global.h

unix {
    target.path = /usr/lib
    INSTALLS += target
}

contains( DEFINES, BUILD_X86_WINDOWS ){
message("project use BUILD_X86_WINDOWS !")
DESTDIR = ../../lib/x86_WINDOWS

LIBS += -L../../lib/x86_WINDOWS -lHmiCommunicate
LIBS += -L../../lib/x86_WINDOWS -llogin
}

contains( DEFINES, BUILD_X86_LINUX ){
message("project use BUILD_X86_LINUX !")
DESTDIR = ../../lib/x86
#DESTDIR = /home/tcr/ftpTest/test1
#编译目录
UI_DIR += ../../build/tmphmi/x86_linux
MOC_DIR += ../../build/tmphmi/x86_linux
OBJECTS_DIR += ../../build/tmphmi/x86_linux
RCC_DIR  += ../../build/tmphmi/x86_linux
}

contains( DEFINES, BUILD_ARM ){
message("project use BUILD_ARM !")
DESTDIR = ../../lib/arm


#编译目录
UI_DIR += ../../build/tmphmi_arm
MOC_DIR += ../../build/tmphmi_arm
OBJECTS_DIR += ../../build/tmphmi_arm
RCC_DIR  += ../../build/tmphmi_arm
}

CODECFORTR = utf-8 #or gbk
#DEFAULTCODEC = utf-8
#CODEC = utf-8

FORMS += \
    ftpprogressdialog.ui
